module.exports = {
    // publicPath:"first-project",
    //根据开发环境切换开发目录
    // publicPath:process.env.NODE_ENV==="development"?"/":"first-project",
    // publicPath:process.env.NODE_ENV==="development"?"/":"./",
    publicPath:"./",
    productionSourceMap:false,
    css:{
        sourceMap:true
    },
    devServer:{
        port:"8081",
        proxy:{
            "/api":{
                // target:"http://localhost:80",
                target:"http://localhost",
                pathRewrite:{
                    "^/api":""
                },
                logLevel:"debug"
            }
        }
    },
    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'less',
            patterns: ["./src/less/var.less"]
        }
    }
}
